<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Register</title>
</h:head>
<h:body>
<f:loadBundle basename="usermanagement.MessageResources" var="message" />
<f:view>
	<h:form id="register">
		<rich:panel header="Register" style="width: 315px">
			<h:panelGrid columns="2">
				<h:outputText value="#{message.username}" />
				<h:inputText value="#{registerBean.user.username}" id="username"/>
				<h:outputText value="#{message.email}" />
				<h:inputText value="#{registerBean.user.email}" id="email"/>
				<h:outputText value="#{message.password}" />
				<h:inputSecret value="#{registerBean.user.password}" id="password"/>
			</h:panelGrid>
			<h:commandButton action="#{registerBean.register}" value="#{message.register}" id="registerButton"/>
		</rich:panel>
	</h:form>
</f:view>
</h:body>
</html>